# $Id$
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>

pkgname=apricots
pkgver=0.2.6
pkgrel=8
pkgdesc="A simple 2D flying/bombing game similar to basic side scrollers"
arch=("x86_64")
license=('GPL')
url="http://www.fishies.org.uk/apricots.html"
depends=('gcc-libs' 'openal' 'sdl' 'freealut')
#source=("http://www.fishies.org.uk/$pkgname-$pkgver.tar.gz"
source=("https://sources.archlinux.org/other/apricots/$pkgname-$pkgver.tar.gz"
        "apricots-0.2.6-freealut.patch")
sha512sums=('cf8a988d316382469e4b13a86315c760b702b3d490398cf2fe96f119ba743c1ff707c09228dbbf4eb601189fece708913a621b04c44e9d93162639ccbd502cf5'
            '1a3efc32776ab364ca242611ec8a5ee6018b470a122430e22b222934361ceafd09e3fbc2c60e273990263c599f08d097887babde10500a78269356611fde75ad')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -p0 -i $srcdir/apricots-0.2.6-freealut.patch
  ./configure --prefix=/usr
  make LIBTOOL='/usr/bin/libtool'
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make prefix=$pkgdir/usr install
}
